{extend name="Layout/datagrid" /}
{block name="content_header"}        
<h1>
    会员设置
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">会员</a></li>
    <li class="active">会员设置</li>
</ol>
{/block}
{block name="content"}
<div class="box">
    <div class="box-header">
        <ul class="nav nav-tabs">
            {foreach name="tabs" item="vo"}
            <li class="{$vo.active}"><a href="{:U($vo['url'])}">{$vo.title}</a></li>
            {/foreach}
        </ul>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <div class="row">
            <div class="col-md-5">
                <!-- form start -->
                <form action="{:U('editSave')}" method="post" class="form-horizontal">
                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">会员邮箱绑定</label>
                            <div class="col-sm-9">
                                {xshtml:radio name="emailbinding_enable" data='array("1"=>"开启","0"=>"关闭")' value="data['emailbinding_enable']|default='1'" /}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">前台找回密码</label>
                            <div class="col-sm-9">
                                {xshtml:radio name="fetchpassword_enable" data='array("1"=>"开启","0"=>"关闭")' value="data['fetchpassword_enable']|default='1'" /}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">注册发送消息</label>
                            <div class="col-sm-9">
                                {xshtml:checkbox name="regist_notice[]" data="array('pm'=>'站内信','email'=>'邮件','sms'=>'短信')" class="form-control input-sm" value="data.regist_notice" /}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">站内信模板</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <textarea name="pm_template" class="form-control input-sm" placeholder="站内信模板" cols="90" rows="3">{$data.pm_template}</textarea>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">邮件模板</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <textarea name="email_template" class="form-control input-sm" placeholder="邮件模板" cols="90" rows="3">{$data.email_template}</textarea>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">短信模板</label>
                            <div class="col-sm-9">
                                <div class="input-group">
                                    <textarea name="sms_template" class="form-control input-sm" placeholder="短信模板" cols="90" rows="3">{$data.sms_template}</textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
                        <button type="submit" class="btn btn-primary pull-right">保存</button>
                    </div>
                    <!-- /.box-footer -->
                    <input type="hidden" name="id" value="{$data.id}"/>
                </form>
            </div>
        </div>
    </div>
    {/block}
    {block name="script_before"}
    <script>
        $('select[name="category_id"]').ajaxcombobox({first: {id: "", text: "选择货币"}});
    </script>
    {/block}